package com.fate.feign.hystrix;

import com.alibaba.fastjson.JSON;
import com.fate.domain.Sku;
import com.fate.feign.CartSkuFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class CartSkuFeignHystrix implements CartSkuFeign {

    /**
     * 远程调用根据skuIds查询sku集合
     *
     * @param skuIds
     * @return
     */
    @Override
    public List<Sku> getSkuListByIds(List<Long> skuIds) {
        log.error("远程调用根据skuIds查询sku集合 失败 {}", JSON.toJSONString(skuIds));
        return null;
    }
}
